﻿using Entity.FrameEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity
{
    [CustomAttribute(TableName = "pi_ProductionPlan_info", Description = "生产计划")]
    public class DbPlanInfo
    {
        private int? _id;
        private string _plcode;
        private string _procode;
        private string _cucode;
        private string _cuname;
        private string _pltype;
        private string _number;
        private string _pweight;
        private string _pmeter;
        private string _unit;
        private string _status;
        private string _jfDate;
        private string _erporder;
        private string _erprowid;
        private string _gycode;
        private string _memo;
        private string _plevel;
        private string _createuser;
        private string _createtime;
        private int? _isdel;
        private string _delmsg;
        /// <summary>
        /// 
        /// </summary>
        public int? id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 计划编码
        /// </summary>
        public string plCode
        {
            set { _plcode = value; }
            get { return _plcode; }
        } 
        /// <summary>
        /// 存货编码
        /// </summary>
        public string proCode
        {
            set { _procode = value; }
            get { return _procode; }
        } 
        /// <summary>
        /// 客户编码
        /// </summary>
        public string cuCode
        {
            set { _cucode = value; }
            get { return _cucode; }
        }
        /// <summary>
        /// 客户名称
        /// </summary>
        public string cuName
        {
            set { _cuname = value; }
            get { return _cuname; }
        }

        /// <summary>
        /// bom编码
        /// </summary>
        public string bomCode
        {
            set;
            get;
        }
        
        /// <summary>
        /// 是否预警   <=0不预警
        /// </summary>
        public string remind
        {
            set;
            get;
        }
        /// <summary>
        /// 计划类型
        /// </summary>
        public string plType
        {
            set { _pltype = value; }
            get { return _pltype; }
        }
        /// <summary>
        /// 主计量数
        /// </summary>
        public string number
        {
            set { _number = value; }
            get { return _number; }
        }
        /// <summary>
        /// 重量
        /// </summary>
        public string pWeight
        {
            set { _pweight = value; }
            get { return _pweight; }
        }
        /// <summary>
        /// 长度
        /// </summary>
        public string pMeter
        {
            set { _pmeter = value; }
            get { return _pmeter; }
        }
        /// <summary>
        /// 单位
        /// </summary>
        public string unit
        {
            set { _unit = value; }
            get { return _unit; }
        }
        /// <summary>
        /// 状态
        /// </summary>
        public string status
        {
            set { _status = value; }
            get { return _status; }
        }
        /// <summary>
        /// 交货日期
        /// </summary>
        public string jfDate
        {
            set { _jfDate = value; }
            get { return _jfDate; }
        }
        /// <summary>
        /// 完工日期
        /// </summary>
        public string finishDate
        {
            set;
            get;
        }
        /// <summary>
        /// 关联订单（销售订单）
        /// </summary>
        public string erpOrder
        {
            set { _erporder = value; }
            get { return _erporder; }
        }
        /// <summary>
        /// 关联订单子表id（销售订单子表id）
        /// </summary>
        public string erpRowId
        {
            set { _erprowid = value; }
            get { return _erprowid; }
        }
        /// <summary>
        /// 工艺编码
        /// </summary>
        public string gyCode
        {
            set { _gycode = value; }
            get { return _gycode; }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string memo
        {
            set { _memo = value; }
            get { return _memo; }
        }
        /// <summary>
        /// 计划等级
        /// </summary>
        public string pLevel
        {
            set { _plevel = value; }
            get { return _plevel; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string createuser
        {
            set { _createuser = value; }
            get { return _createuser; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string createtime
        {
            set { _createtime = value; }
            get { return _createtime; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? isdel
        {
            set { _isdel = value; }
            get { return _isdel; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string delMsg
        {
            set { _delmsg = value; }
            get { return _delmsg; }
        }
        /// <summary>
        /// 生产执行标准
        /// </summary>
        public string zhxBz { get; set; }
        public string cu_caizhi { get; set; }
        public string cu_bcp { get; set; }
        public string orderMemo { get; set; }
        public string cjCode { get; set; } //生产车间编码
        public string gcName { get; set; }  //生产工厂名称
    }
}
